//入口文件
import Vue from '../node_modules/vue/dist/vue.js';
import ElementUI from "element-ui";
import 'element-ui/lib/theme-chalk/index.css';
import VueRouter from 'vue-router';

//导入自定义组件
import layout from './views/BasicLayout.vue';
import filetask from './views/Filetask.vue';
import notifytask from './views/Notifytask.vue';


Vue.use(ElementUI)
Vue.use(VueRouter)

//创建路由对象
var router = new VueRouter({
    routes: [
        { path: '/filetask', component: filetask },
        { path: '/notifytask', component: notifytask }
    ]
})



var vm = new Vue({
    el: '#app',
    data: {
        msg: 123
    },
    router: router,//挂载路由对象
    // render:function(createElements) {
    //     return createElements(layout);
    // }
    //render会把el指定的容器中的内容都清空覆盖
    render: c => c(layout)

})